//
//  NSMutableString+Safe.h
//  lc-collect
//
//  Created by mac on 2021/3/3.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

/// 避免null
@interface NSMutableString (Safe)

- (void)safeInsertString:(NSString *)aString
                 atIndex:(NSUInteger)loc;

- (void)safeAppendString:(NSString *)aString;

- (void)safeSetString:(NSString *)aString;

- (NSUInteger)safeReplaceOccurrencesOfString:(NSString *)target
                                  withString:(NSString *)replacement
                                     options:(NSStringCompareOptions)options
                                       range:(NSRange)searchRange;

@end

NS_ASSUME_NONNULL_END
